package cn.ztf.zshop.bean.vo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

@Data
public class AreaDto {
    @NotNull(groups = Update.class)
    private Long areaId;
    @NotBlank(message = "地区名称不能为空")
    private String areaName;
    private Long parentId;
    @NotNull
    @Min(value = 1)
    private Integer level;
    // 分组
   public interface Update extends Default {}
}
